package com.t235.gc.biz.controller;

import com.t235.gc.entity.UserCashRecord;
import com.t235.gc.biz.service.UserCashRecordService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 用户提现记录表(UserCashRecord)表控制层
 *
 * @author makejava
 * @since 2021-03-24 08:45:43
 */
@RestController
@RequestMapping("userCashRecord")
public class UserCashRecordController {
    /**
     * 服务对象
     */
    @Resource
    private UserCashRecordService userCashRecordService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public UserCashRecord selectOne(Long id) {
        return this.userCashRecordService.queryById(id);
    }

}
